# -*- coding: utf-8 -*-
"""
Created on Fri May 17 17:20:58 2024
斐波那契数列
@author: Administrator
"""
def feibonaqie_sequence(n):
    a_sequence = [1,1]
    while len(a_sequence) < n:
        a_sequence.append(a_sequence[-1] + a_sequence[-2])
    return a_sequence[:n]

a_20 = feibonaqie_sequence(20)
print(a_20)
